package com.huangliusong.desigin.pattern.structual.adapter.AC220;

/**
 * @author huangliusong
 * @since 2018/10/12
 * {@link }
 */
public class PowerAdapter implements DC5 {
    private AC220 ac220=new AC220();
    public int outputDC5V() {
        int adapterInput=ac220.outputAC220();
        //变压器
        int adapterOutput=adapterInput/44;

        System.out.println("泗洪poweradapter输入"+adapterInput+"v"+" 输出"+adapterOutput+"v");
        return adapterOutput;
    }
}
